<?php

?>
<form method="post" action="index.php?id=organisateur_ajout_resultats">
<table>
	<tr>
		<td>Numéro</td>
		<td><input type="text" name="numero"/></td>
	</tr>
	<tr>
		<td>Date</td>
		<td><input type="date" name="dateheure"/></td>
	</tr>
	<tr>
		<td>Durée</td>
		<td><input type="text" name="duree"/></td>
	</tr>
	<tr>
		<td>Joueur 1 - Edition</td>
		<td>
			<select name="pseudoj1">
				<?php
					while($aData2 = pg_fetch_array($aPseudos1))
            		{
                		echo '<option value="' . $aData2['pseudo'] . '#' . $aData2['edition'] .'">' . $aData2['pseudo'] . ' - ' . $aData2['edition'] .  '</option>';
            		}
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td>Points</td>
		<td><input type="text" name="pointegerj1"/></td>
	</tr>
	<tr>
		<td>Joueur 2 - Edition</td>
		<td>
			<select name="pseudoj2">
				<?php
					while($aData2 = pg_fetch_array($aPseudos2))
            		{
                		echo '<option value="' . $aData2['pseudo'] . '#' . $aData2['edition'] .'">' . $aData2['pseudo'] . ' - ' . $aData2['edition'] .  '</option>';
            		}
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td>Points</td>
		<td><input type="text" name="pointegerj2"/></td>
	</tr>
	<tr>
		<td>Round</td>
		<td>
			<select name = "round">
				<option value="round1">Round 1</option>
				<option value="round2">Round 2</option>
				<option value="round3">Round 3</option>
			</select>
		</td>
	</tr>

</table>
<input type="submit" value="Valider"/>
</form>

<a href="index.php?id=organisateur_resultats">Retour</a>
